package com.self.study.subjectsstudy.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.self.study.subjectsstudy.common.ResultInfo;
import com.self.study.subjectsstudy.common.SubjectsItemVo;
import com.self.study.subjectsstudy.db.bean.Subjects;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lixunhuan
 * @since 2021-03-06
 */
public interface ISubjectsService extends IService<Subjects> {

    List<SubjectsItemVo> getItems(Integer subjectType,Integer level);

    ResultInfo answerSubject(String openid, String option, Integer subjectId);

    ResultInfo getMyErrorSubjects(String openid);

    ResultInfo getSubjectsByLevelAndType(Integer subjectType, Integer level);
}
